<?php /* Smarty version 2.6.26, created on 2013-04-07 05:28:45
         compiled from ../templates/item_refer.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'U', '../templates/item_refer.html', 16, false),)), $this); ?>
<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>コントロールパネル</title>

    <link href="./assets/styles/default.css" rel="stylesheet" />
    <link href="./assets/styles/page/item_form.css" rel="stylesheet" />
	<script src="./assets/scripts/libs/jquery-1.7.1.min.js" type="text/javascript"></script>
	<script src="./assets/scripts/import.js" type="text/javascript"></script>
	
	
	<script type="text/javascript">
		$(function(){
			back_to_search();
			categoryModal({url:"<?php echo ((is_array($_tmp='Home/Category/index')) ? $this->_run_mod_handler('U', true, $_tmp) : U($_tmp)); ?>
?keepThis=true&parent=3&TB_iframe=true&height=500&width=300&modal=false",mode:"tree"});


			
			$('.free > p').click(function(){
				var t = $(' > div',$(this).parent());
				var h = t.height();

				if(t.is(":hidden")){
					$(this).addClass("active");
					$('em',this).text('j');
					t.css({"height":"0px"})
					.show()
					.animate({height:h+"px"},300,function(){
						$(this).css({height:""});
					});
				}else {
					$(this).removeClass("active");
					$('em',this).text('g');
					t.animate({height:"0px"},300,function(){
						t.hide().css({height:h+"px"},300)
					});
				}
			});

			$('.close > p').click();
			
			

		});
	</script>
</head>
<body>

<?php echo $this->_tpl_vars['zhead']; ?>


<div id="container">
	<?php echo $this->_tpl_vars['zmenu']; ?>


    <article>
    	<h2><span>&nbsp;</span>商品管理<p><a href="javascript:;">Open Plugins</a></p></h2>
        <nav>
        	<ul>
				<li class="active"><a href="<?php echo ((is_array($_tmp='Home/Item/index')) ? $this->_run_mod_handler('U', true, $_tmp) : U($_tmp)); ?>
"><span>商品検索</span></a></li>
        <li><a href="<?php echo ((is_array($_tmp='Home/Item/insert')) ? $this->_run_mod_handler('U', true, $_tmp) : U($_tmp)); ?>
"><span>商品登録</span></a></li>
        <li><a href="<?php echo 'Home/goodstop/index'; ?>
"><span>ランキング</span></a></li>
        <li><a href="<?php echo ((is_array($_tmp='Home/Item/set')) ? $this->_run_mod_handler('U', true, $_tmp) : U($_tmp)); ?>
"><span>基本設定</span></a></li>
			</ul>
        </nav>
		<section id="content">
			<h3>商品参照</h3>
			<p class="message">商品情報。</p>
			<form name="fm" action="<?php echo ((is_array($_tmp='Home/Item/update')) ? $this->_run_mod_handler('U', true, $_tmp) : U($_tmp)); ?>
" method="post" >
				<h4><span>&nbsp;</span>基本情報</h4>
				<input type="hidden" name="method" value="update"/>
				<input type="hidden" name="id" value="<?php echo $this->_tpl_vars['forms']['id']; ?>
"/>
				<table class="formTable">
					<tbody>		
						<tr>
							<th>状態</th>
							<td>
							<?php echo $this->_tpl_vars['forms']['goods_status']; ?>

							</td>
						</tr>
						<tr>
							<th>商品コード</th>
							<td><?php echo $this->_tpl_vars['forms']['goods_id']; ?>
</td>
						</tr>
						<tr>
							<th>商品名</th>
							<td><?php echo $this->_tpl_vars['forms']['goods_name']; ?>
</td>
						</tr>
						<tr>
							<th>商品種別</th>
							<td>
							<?php echo $this->_tpl_vars['forms']['goods_type']; ?>
	
							</td>
						</tr>
						<tr>
							<th>カテゴリ（複数）</th>
							<td><?php echo $this->_tpl_vars['forms']['category_id']; ?>
</td>
						</tr>
						<tr>
							<th>本体価格</th>
							<td><?php echo $this->_tpl_vars['forms']['goods_unitprice']; ?>
円（税込み<span id="tax_in"><?php echo $this->_tpl_vars['forms']['goods_unitprice']; ?>
</span>円）<?php echo $this->_tpl_vars['err_mes']['goods_unitprice']; ?>
</td>
						</tr>
						<tr>
							<th>在庫</th>
							<td>
								
								<?php echo $this->_tpl_vars['forms']['goods_stockstatus']; ?>

								
							</td>
						</tr>
						<tr>
							<th>商品画像（複数）</th>
							<td>
							<div id="img" >
							
							<?php $_from = $this->_tpl_vars['formsimg']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['member'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['member']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['v']):
        $this->_foreach['member']['iteration']++;
?>
								<div id="<?php echo $this->_tpl_vars['k']; ?>
">
								<img width="240" src="<?php echo $this->_tpl_vars['v']['imgdir']; ?>
"><br>
								</div>
						    <?php endforeach; endif; unset($_from); ?>	
							
							</div>
							<div style="clear:both"></div>
							</td>
						</tr>
						<tr>
							<th>発行月</th>
							<td>
							<?php echo $this->_tpl_vars['forms']['goods_issuedate']; ?>

							</td>
						</tr>
						<tr>
							<th>仕様</th>
							<td><?php echo $this->_tpl_vars['forms']['goods_style']; ?>
</td>
						</tr>
						<tr>
							<th>フラグ</th>
							<td>
								 <?php $_from = $this->_tpl_vars['goods_mark']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['member'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['member']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['kk'] => $this->_tpl_vars['vv']):
        $this->_foreach['member']['iteration']++;
?>
					   		     <?php $this->assign('goods_mark', "goods_mark".($this->_tpl_vars['kk'])); ?>
							    <label><input type="checkbox" name="goods_mark<?php echo $this->_tpl_vars['kk']; ?>
"  <?php if ($this->_tpl_vars['forms'][$this->_tpl_vars['goods_mark']] == $this->_tpl_vars['kk']): ?> checked="true" <?php endif; ?> value="<?php echo $this->_tpl_vars['kk']; ?>
" /><?php echo $this->_tpl_vars['vv']; ?>
</label>
						         <?php endforeach; endif; unset($_from); ?>
							</td>
						</tr>
						<tr>
							<th>単位</th>
							<td>
								<?php echo $this->_tpl_vars['forms']['goods_unit']; ?>

							</td>
						</tr>
						<tr>
							<th>キャッチコピー</th>
							<td><?php echo $this->_tpl_vars['forms']['goods_slogan']; ?>
</td>
						</tr>
						<tr>
							<th>表示順</th>
							<td><?php echo $this->_tpl_vars['forms']['goods_order']; ?>
</td>
						</tr>
						<tr>
							<th>META Description</th>
							<td><?php echo $this->_tpl_vars['forms']['metadescription']; ?>
</td>
						</tr>
						<tr>
							<th>META Keyword</th>
							<td><?php echo $this->_tpl_vars['forms']['metakeyword']; ?>
</td>
						</tr>
						<tr>
							<th>試し読みURL</th>
							<td><?php echo $this->_tpl_vars['forms']['tryURL']; ?>
</td>
						</tr>
						<tr>
							<th>外部URL</th>
							<td><?php echo $this->_tpl_vars['forms']['outsideURL']; ?>
</td>
						</tr>
						<tr>
							<th>社内コメント</th>
							<td><?php echo $this->_tpl_vars['forms']['insideappraise']; ?>
</td>
						</tr>
						<tr>
							<th>販売開始日時</th>
							<td><?php echo $this->_tpl_vars['forms']['sellbegin']; ?>
</td>
						</tr>
						<tr>
							<th>販売終了日時</th>
							<td><?php echo $this->_tpl_vars['forms']['sellend']; ?>
</td>
						</tr>
					</tbody>
				</table>

				 <div class="free">
					<p>
						<em>j</em>
						フリースペース1 
					</p>
					<div>
						<table class="formTable">
							<tbody>
								<tr>
									<td>
										<?php echo $this->_tpl_vars['forms']['freespace1']; ?>

									</td>
								</tr>
							</tbody>
						</table>
					</div>
				</div>

				 <div class="free ">
					<p>
						<em>j</em>
						フリースペース2
					</p>
					<div>
						<table class="formTable">
							<tbody>
								<tr>
									<td>
										<?php echo $this->_tpl_vars['forms']['freespace2']; ?>

									</td>
								</tr>
							</tbody>
						</table>
					</div>
				</div>

				 <div class="free ">
					<p>
						<em>j</em>
						フリースペース3
					</p>
					<div>
						<table class="formTable">
							<tbody>
								<tr>
									<td>
										<?php echo $this->_tpl_vars['forms']['freespace3']; ?>

									</td>
								</tr>
							</tbody>
						</table>
					</div>
				</div>

				<p class="button">
					<!--<button type="button" id="btn_update" class="submit"><span>更新</span></button>-->
				</p>
			</form>
		</section>
	</article>
</div>

	
	
<?php echo $this->_tpl_vars['zfooter']; ?>

</body>
</html>